/**
 * Wihidum - Efficient Broker Hierarchy for Publish Subscribe Middleware
 *
 * License      :   Apache License 2.0
 * Home Page    :   http://code.google.com/p/wihidum/
 * Mailing List :   wihidum@googlegroups.com
 */

package lk.mrt.cse.wihidum.storage;

import java.util.ArrayList;

public interface BrokerSubscriptionManager
{
    /**
     * Saves a BrokerSubscription
     *
     * @param brokerSubscription Subscription to be saved which arrived form another broker
     * @return
     */
    public boolean saveBrokerSubscription (BrokerSubscription brokerSubscription,String type);

    /**
     *Returns an array list of BrokerSubscriptions those matches with a given filter ( eg: Topic)
     * @param filter  Topic of the subscriptions to be filtered
     * @return
     */
    public ArrayList<BrokerSubscription> getBrokerSubscriptionsFilteredByTopic (String filter);

}
